<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% 
String action = request.getParameter("action");

  if(action!=null &&action.equals("login")) {
		String username = request.getParameter("username");
		String password = request.getParameter("password");
		if(username == null || !username.equals("admin")) {
			out.print("请输入正确的用户名");
		} else if(password == null || !password.equals("admin")) {
			out.print("密码错误");
		} else {
			out.print("登录成功");
			session.setAttribute("admin", "true");
			response.sendRedirect("manage.jsp");
		} 
	}
 %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <form method="post" action="managerLogin.jsp"   >
    <input type="hidden"  value="login" name="action" >
	<div align="center">
	<table id="table9" width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
		<tbody><tr>
			<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all">
			<div align="center">
				<table id="table10" width="650" background=" ../images/admin_login.jpg " border="0" cellpadding="0" cellspacing="0" height="315">
					<tbody><tr>
						<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" valign="top">
						<div align="center">
							<div align="center">
								<table id="table11" width="100%" border="0" cellpadding="0" cellspacing="0">
									<tbody><tr>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="207" height="130"> </td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" height="130">		</td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="37" height="130"> </td>
									</tr>
									<tr>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="207" height="111">  </td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" height="111">
										
										<table id="table12" width="319" border="0" cellpadding="5" cellspacing="0">
											<tbody><tr>
												<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" align="center" width="114">
												用户名</td>
												<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="205">
												&nbsp;<input name="username" size="24" maxlength="20" style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000" type="text">
												<span id="sname"></span></td>
											</tr>
											<tr>
												<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" align="center" width="114">
												密码</td>
												<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="205">
												&nbsp;<input name="password" size="24" maxlength="20" style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000" type="password">
												<span id="spswd"></span></td>
											</tr>
											<!-- <tr>
												<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" align="center" width="114">
												脩茅脰陇脗毛</td>
												<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="205">
												&nbsp;<input name="XuasYzm" size="9" maxlength="5" style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000">
												96496
												</td>
											</tr> -->
											</tbody></table>
										</td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="37" height="111">  </td>
									</tr>
									<tr>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="207">  </td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all">  </td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="37">  </td>
									</tr>
									<tr>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="207"></td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all">
										<p align="center">
											<input src="../images/login001.jpg" value="提交" name="B1" type="image">&nbsp;
											<a href="#" onClick="window.opener=null;window.close()" style="text-decoration: none; font-family: AdobeSm; color: #000000">
											<img src="../images/login002.jpg" width="72" border="0" height="21"></a></p></td>
										<td style="font-size: 9pt; font-family: 脣脦脤氓,MingLiU, Arial; color: #000000; table-layout: fixed; word-break: break-all" width="37">  </td>
									</tr>
									
								</tbody></table>
							</div>
						</div>
						</td>
					</tr>
				</tbody></table>
			</div>
			</td>
		</tr>
	</tbody></table>
</div>
</form>

</body>
</html>